import * as date from '../plugins/date';
import * as array from '../plugins/array';
import * as zeng from '../plugins/zeng';

const install = function (Vue) {
  if (install.installed) return;
  install.installed = true;

  Object.defineProperties(Vue.prototype, {
    $date: {
      get() {
        return date;
      }
    },
    $zeng: {
      get() {
        return zeng;
      }
    },
    $array: {
      get() {
        return array;
      }
    }
  });
};

export default {
  install
};
